<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>显示用户</title>
    <link href="/layui/css/layui.css">
</head>
<body>
<div th:if="${session.tUser}!=null" >

    账号 <p th:text="${session.tUser.name}"></p>
    头像：<img th:src="${session.tUser.getPic()}">
    <a href="/touploads">测试多文件上传</a>
    <a href="/toup">测试单个上传文件</a>
    <a href="/logout">退出</a>
</div>

<div th:if="${session.tUser}==null" >


    <a href="/tologin">请登录</a>
</div>

</body>
</html>